<?
$base_url = ($_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
$base_url .= ($_SERVER['SERVER_PORT'] != '80') ? $_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT'] : $_SERVER['HTTP_HOST'];
$relative_path = eregi_replace("\/[^/]*\.php$", "/", $_SERVER['PHP_SELF']); 
$web_path = $base_url.$relative_path;
$cur_file = basename($_SERVER['PHP_SELF']);
?>
<div class="span12">
	<h1>웹 접근성 가이드</h1>
	
	<!-- navbar -->
	<div class="navbar">
	  <div class="navbar-inner">
	    <div class="container">
	 
	      <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
	      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	      </a>
	 
	      <!-- Be sure to leave the brand out there if you want it shown -->
	      <a class="brand" href="../index.php">Home</a>
	 
	      <!-- Everything you want hidden at 940px or less, place within here -->
	      <div class="nav-collapse collapse">
	        <ul class="nav">
			  <?
			  if ($cur_file == 'install_guide.php' || $cur_file == 'install_guide_ie.php' || $cur_file == 'install_guide_chrome.php' || $cur_file == 'install_guide_cca.php' || $cur_file == 'install_guide_contrast.php') {
			  	echo "<li class=\"dropdown active\">";
			  } else {
			  	echo "<li class=\"dropdown\">";
			  }
			  ?>
			  	<a class="dropdown-toggle" data-toggple="dropdown" href="#">평가 툴<b class="caret"></b></a>
			  	<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
					<li><a href="install_guide.php">C-WAX 소개</a></li>
					<li><a href="install_guide_ie.php">IE Bookmarklet</a></li>
					<li><a href="install_guide_chrome.php">크롬 확장 프로그램</a></li>
					<li class="divider"></li>
					<li><a href="install_guide_cca.php">CCA-2.2</a></li>
					<li><a href="install_guide_contrast.php">High Contrast</a></li>
				</ul>
			  </li>
			  <?
			  if ($cur_file == 'score_guide.php') {
			  	echo "<li class=\"active\">";
			  } else {
			  	echo "<li>";
			  }
			  ?>
			  	<a href="score_guide.php">점수 가이드</a>
			  </li>
			  <?
			  if ($cur_file == 'score_check.php') {
			  	echo "<li class=\"active\">";
			  } else {
			  	echo "<li>";
			  }
			  ?>
			  	<a href="score_check.php">점수 집계표</a>
			  </li>
			</ul>
	      </div>
	 
	    </div>
	  </div>
	</div>
	<!-- //navbar -->
</div>
<script>
$('.dropdown-toggle').dropdown()
</script>